Micron Document
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
| SparkN0de-git | SparkN0de |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Commit 0a84d9da76077c77b622f1d7e0a9b6cc1840ec98


Parents : 33e41ca
Author : Mark Qvist <mark@unsigned.io>
Date : 2022-06-17T08:22:18+02:00

Cleanup

Changes

1 files changed, 4 insertions(+), 3 deletions(-)

M LXMF/LXMF.py +4 -3

Diff

diff --git a/LXMF/LXMF.py b/LXMF/LXMF.py
index 188941e..ef4dcc8 100644
--- a/LXMF/LXMF.py
+++ b/LXMF/LXMF.py
@@ -647,9 +647,8 @@ class LXMPeer:
RNS.log("No path to peer "+RNS.prettyhexrep(self.destination_hash)+" exists, requesting...", RNS.LOG_DEBUG)
RNS.Transport.request_path(self.destination_hash)
RNS.log("Path requested, retrying sync later", RNS.LOG_DEBUG)
+
else:
- # RNS.log("Path to peer "+RNS.prettyhexrep(self.destination_hash)+" exists over "+str(RNS.Transport.hops_to(self.destination_hash))+" hops via "+str(RNS.Transport.next_hop_interface(self.destination_hash)), RNS.LOG_DEBUG)
-
if self.identity == None:
self.identity = RNS.Identity.recall(destination_hash)
self.destination = RNS.Destination(self.identity, RNS.Destination.OUT, RNS.Destination.SINGLE, APP_NAME, "propagation")
@@ -1089,7 +1088,9 @@ class LXMRouter:
self.lxmf_propagation(lxmf_data)
haves.append(RNS.Identity.full_hash(lxmf_data))
- # Return a list of successfully received messages to the node
+ # Return a list of successfully received messages to the node.
+ # This deletes the messages on the propagation node.
+ # TODO: Add option to keep messages on node.
request_receipt.link.request(
LXMPeer.MESSAGE_GET_PATH,
[None, haves],


──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────